package cc.lj.internal.coupons.domain.ticket.model.vo.convert;

import cc.lj.internal.coupons.domain.ticket.model.vo.TicketBatchMerchantListDO;
import cc.lj.internal.coupons.infrastructure.po.TicketBatchMerchantListPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 电子券黑白名单 PO 与 DO之间的转换
 * @author liangxifeng
 * @date 2022-06-26
 */
@Mapper
public interface TicketBatchMerchantListPOConvertDO {
    TicketBatchMerchantListPOConvertDO INSTANCE = Mappers.getMapper(TicketBatchMerchantListPOConvertDO.class);
    //do to po
    TicketBatchMerchantListPO convert(TicketBatchMerchantListDO ticketBatchMerchantListDO);

    //po to do
    TicketBatchMerchantListDO convert(TicketBatchMerchantListPO ticketBatchMerchantListPO);
}
